// FrogSplitDialog.h : Declaration of the CFrogSplitDialog

#pragma once

#include "resource.h"       // main symbols
#include <atlhost.h>
#include "FrogProgressReportDialog.h"

// CFrogSplitDialog

class CFrogSplitDialog: public CFrogProgressReportDialog<CFrogSplitDialog>
{
public:

	size_t m_SpiltSize;

	CFrogSplitDialog(HICON hIcon);

	enum { IDD = IDD_DIALOG_SPLIT };

	BEGIN_MSG_MAP(CFrogSplitDialog)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_HANDLER(IDOK, BN_CLICKED, OnClickedOK)
		COMMAND_HANDLER(IDC_RADIO_SPLIT_PREDEFINED, BN_CLICKED, OnRadioSplitPredefined)
		COMMAND_HANDLER(IDC_RADIO_SPLIT_CUSTOM, BN_CLICKED, OnRadioSplitCustom)
		// FrogBaseDialog Inherited
		CHAIN_MSG_MAP(CFrogProgressReportDialog)
	END_MSG_MAP()

	// Handler prototypes:
	//  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	//  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	//  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);

	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnRadioSplitPredefined(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnRadioSplitCustom(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);

	virtual void ExecuteCommand();
};


